//
//  M4SShouxinAlertView.swift
//  M4
//
//  Created by YuChuang on 2024/8/27.
//

import UIKit

class M4SShouxinAlertView: UIView {
    
    @IBOutlet weak var M4SShouxinContent: UILabel!
    
    @IBOutlet weak var M4SShouxinUseButton: UIButton!
    
    @IBOutlet weak var M4SShouxinCancelButton: UIButton!
    
    var m4useBlock: (() -> Void)?
    
    var m4cancelBlock: (() -> Void)?
    
    override func awakeFromNib() {
        self.frame = CGRect(x: 0, y: 0, width: M4ScreenWidth, height: M4ScreenHeight)
        M4SShouxinCancelButton.M4ButtonUnderline()
    }
    
    @IBAction func M4SShouxinUseAction(_ sender: UIButton) {
        M4AlertViewHidden()
        m4useBlock?()
        sender.M4EventUnavailable = false
    }
    
    @IBAction func M4SShouxinCancelAction(_ sender: UIButton) {
        M4AlertViewHidden()
        m4cancelBlock?()
        sender.M4EventUnavailable = false
    }
    
    

}
